package com.gopay.common.constants.trans;

/**
 * Created by HJY on 2014/11/3.
 * 0-待结算,1-全部结算,2-部分结算,3-未结算
 */
public enum AutoSettleStatus {
    SETTLE_STATUS_0("0"),
    SETTLE_STATUS_1("1"),
    SETTLE_STATUS_2("2"),
    SETTLE_STATUS_3("3");

    public final  String value;
    AutoSettleStatus(String value){
        this.value = value;
    }

    @Override
    public String toString() {
        return this.value;
    }
    
    public static String translateNameByValue(String value){
        String name=null;
        
        if(SETTLE_STATUS_0.value.equals(value)){
            name="待结算";
        }else if(SETTLE_STATUS_1.value.equals(value)){
            name="全部结算";
        }else if(SETTLE_STATUS_2.value.equals(value)){
            name="部分结算";
        }else if(SETTLE_STATUS_3.value.equals(value)){
            name="未结算";
        }
        
        return name;
    }
}
